package xyz.bali16.module.article.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * @author bali2 on 4/4/2023.
 * @version 1.0
 */
@Data
@TableName("collection")
public class Collect {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    private String userId;
    /**
     * 帖子Id
     */
    private String targetId;
    @TableField(fill = FieldFill.INSERT)
    private String gmtCreated;
    @TableField(fill = FieldFill.INSERT)
    private String gmtModified;

    @TableField(exist = false)
    private String articleTitle;

    @TableField(exist = false)
    private String articleContent;
}
